package com.may.dataA.controller;

import com.may.dataA.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Youjie on 2017/7/23.
 */
@RestController
public class IndexController {

    @Autowired
    IndexService indexService;

    @RequestMapping("/user")
    public Object showUser(){
       return indexService.findUser();
    }

    @RequestMapping("/city")
    public Object showCity(){
        return indexService.findCity();
    }

    @RequestMapping("/role")
    public Object showRole(){
        return indexService.findRole();
    }
}
